package org.jeecg.modues.api.controller;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.system.api.ISysBaseAPI;
import org.jeecg.common.system.vo.DictModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/api/home")
public class ApiHomeController {

    @Autowired
    private ISysBaseAPI sysBaseAPI;

    @RequestMapping("/occupationList")
    public List<DictModel> getOccupationList() {
        return sysBaseAPI.getDictItems("occupation");
    }
}
